package com.edu.html.pojo;

import org.apache.ibatis.type.Alias;

@Alias("user")
public class User {
	
	private Integer id;
	private String username;
	private String password;
	private String role;
	private String phone;
	private String salt;
	private Boolean locked = Boolean.FALSE; 
	
	public final String getUsername() {
		return username;
	}
	public final void setUsername(String username) {
		this.username = username;
	}
	public final String getPassword() {
		return password;
	}
	public final void setPassword(String password) {
		this.password = password;
	}
	public final String getRole() {
		return role;
	}
	public final void setRole(String role) {
		this.role = role;
	}
	public final Integer getId() {
		return id;
	}
	public final void setId(Integer id) {
		this.id = id;
	}
	public final String getPhone() {
		return phone;
	}
	public final void setPhone(String phone) {
		this.phone = phone;
	}
	
	public final String getSalt() {
		return salt;
	}
	public final void setSalt(String salt) {
		this.salt = salt;
	}
	public final Boolean getLocked() {
		return locked;
	}
	public final void setLocked(Boolean locked) {
		this.locked = locked;
	}
	public String getCredentialsSalt() {  
        return username + salt;  
    }  

}
